Skip to content

[fix][broker] fix can not cleanup heartbeat data if scaling down broker#22750

Merged
Technoboy- merged 1 commit intoapache:masterfrom
TakaHiR07:fix_cleanup_heartbeat_data_when_close_broker
May 30, 2024
Merged

[fix][broker] fix can not cleanup heartbeat data if scaling down broker#22750
Technoboy- merged 1 commit intoapache:masterfrom
TakaHiR07:fix_cleanup_heartbeat_data_when_close_broker

Conversation

@TakaHiR07
Copy link
Contributor

@TakaHiR07 TakaHiR07 commented May 21, 2024

Main Issue: #21324

Motivation

Fix can not cleanup heartbeat data if scaling down broker

Modifications

when close the broker, delete heartbeat resource.

If the broker restart, the heartbeat resource would be recreate.

Verifying this change

  • [] Make sure that the change passes the CI checks.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository: TakaHiR07#21

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label May 21, 2024
@TakaHiR07 TakaHiR07 force-pushed the fix_cleanup_heartbeat_data_when_close_broker branch from 7a3e508 to b4b5dc7 Compare May 21, 2024 07:30
@TakaHiR07 TakaHiR07 requested a review from lhotari May 21, 2024 07:33
@TakaHiR07 TakaHiR07 force-pushed the fix_cleanup_heartbeat_data_when_close_broker branch from b4b5dc7 to 767090c Compare May 21, 2024 10:03
@TakaHiR07 TakaHiR07 requested a review from lhotari May 21, 2024 10:05
@TakaHiR07 TakaHiR07 force-pushed the fix_cleanup_heartbeat_data_when_close_broker branch from 767090c to 20f3895 Compare May 22, 2024 08:58
@TakaHiR07 TakaHiR07 requested a review from lhotari May 22, 2024 08:59
Copy link
Member

@lhotari lhotari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Good work!

@codecov-commenter
Copy link

codecov-commenter commented May 30, 2024

Codecov Report

Attention: Patch coverage is 89.28571% with 3 lines in your changes missing coverage. Please review.

Project coverage is 70.97%. Comparing base (bbc6224) to head (20f3895).
Report is 1187 commits behind head on master.

Files with missing lines Patch % Lines
...n/java/org/apache/pulsar/broker/PulsarService.java 90.47% 0 Missing and 2 partials ⚠️
...g/apache/pulsar/broker/admin/impl/BrokersBase.java 85.71% 0 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #22750      +/-   ##
============================================
- Coverage     73.57%   70.97%   -2.60%     
+ Complexity    32624     4229   -28395     
============================================
  Files          1877     1891      +14     
  Lines        139502   148710    +9208     
  Branches      15299    16554    +1255     
============================================
+ Hits         102638   105548    +2910     
- Misses        28908    34959    +6051     
- Partials       7956     8203     +247     
Flag Coverage Δ
inttests 27.41% <35.71%> (+2.82%) ⬆️
systests 24.68% <3.57%> (+0.36%) ⬆️
unittests 72.23% <91.66%> (-0.61%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...g/apache/pulsar/broker/admin/impl/BrokersBase.java 67.67% <85.71%> (-4.79%) ⬇️
...n/java/org/apache/pulsar/broker/PulsarService.java 83.08% <90.47%> (+0.70%) ⬆️

... and 376 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Technoboy- Technoboy- merged commit 34898e3 into apache:master May 30, 2024
hanmz pushed a commit to hanmz/pulsar that referenced this pull request Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs ready-to-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants